import Vue from 'vue'
import Router from 'vue-router'
import Login from "@/components/Login";
import Manager from "@/components/Manager";
import AddLaboratory from "@/components/laboratory/AddLaboratory";
import LaboratoryList from "@/components/laboratory/LaboratoryList";
import AddBook from "@/components/laboratory/AddBook";
import BookLaboratoryList from "@/components/laboratory/BookLaboratoryList";
import AddWorkhome from "@/components/workhome/AddWorkhome";
import WorkhomeList from "@/components/workhome/WorkhomeList";
import uploadWorkhome from "@/components/workhome/uploadWorkhome";
import StudentWorkhomeList from "@/components/workhome/StudentWorkhomeList";
import CheckStudentWorkhome from "@/components/workhome/CheckStudentWorkhome";
import AddClass from "@/components/classstudent/AddClass";
import AddStudent from "@/components/classstudent/AddStudent";
import ClassList from "@/components/classstudent/ClassList";
import StudentList from "@/components/classstudent/StudentList";
import HealthList from "@/components/health/HealthList";
import AddHealth from "@/components/health/AddHealth";
import TeacherList from "@/components/teacher/TeacherList";
import AddTeacher from "@/components/teacher/AddTeacher";
import LaboratoryHealthList from "@/components/laboratoryhealth/LaboratoryHealthList";
import AddLaboratoryHealth from "@/components/laboratoryHealth/AddLaboratoryHealth";
import DocumentList from "@/components/document/DocumentList";
import AddDocument from "@/components/document/AddDocument";
import RepairList from "@/components/repair/RepairList";
import AddRepair from "@/components/repair/AddRepair";
import UploadExcel from "@/components/classstudent/UploadExcel";

Vue.use(Router)

export default new Router({
  routes: [
    {path: "/", component: Login},
    {
      path: "/manager", component: Manager,
      children:[
        {path: "/laboratory/selectAll", component: LaboratoryList},
        {path: "/laboratory/add", component: AddLaboratory},
        {path: "/bookLaboratory/selectAll", component: BookLaboratoryList},
        {path: "/bookLaboratory/add", component: AddBook},
        {path: "/workhome/selectAll", component: WorkhomeList},
        {path: "/workhome/add", component: AddWorkhome},
        {path: "/workhome/upload", component: uploadWorkhome},
        {path: "/studentWorkhome/selectByWorkhome", component: StudentWorkhomeList},
        {path: "/studentWorkhome/CheckStudentWorkhome", component: CheckStudentWorkhome},
        {path: "/classstudent/AddClass", component: AddClass},
        {path: "/classstudent/AddStudent", component: AddStudent},
        {path: "/classstudent/ClassList", component: ClassList},
        {path: "/classstudent/StudentList", component: StudentList},
        {path: "/health/HealthList", component: HealthList},
        {path: "/health/AddHealth", component: AddHealth},
        {path: "/teacher/TeacherList", component: TeacherList},
        {path: "/teacher/AddTeacher", component: AddTeacher},
        {path: "/laboratoryHealth/LaboratoryHealthList", component: LaboratoryHealthList},
        {path: "/laboratoryHealth/AddLaboratoryHealth", component: AddLaboratoryHealth},
        {path: "/document/DocumentList", component: DocumentList},
        {path: "/document/AddDocument", component: AddDocument},
        {path: "/repair/RepairList", component: RepairList},
        {path: "/repair/AddRepair", component: AddRepair},
        {path: "/classstudent/UploadExcel", component: UploadExcel},
      ]
    }
  ]
})
